﻿
@{
    ViewBag.Title = "About";

}
<table>
    <thead>
        <tr>
            <th>PersonID</th>
            <th>LastName</th>
            <th>FirstName</th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in ViewBag.Person as List<MVCTest.Models.Person>)
        {
            <tr>
                <td>@item.PersonID</td>
                <td>@item.LastName</td>
                <td>@item.FirstName</td>
                <td>
                    @Html.ActionLink("编辑","Edit",new { id=item.PersonID})

                    @Html.ActionLink("删除","Delete",new { id=item.PersonID})
                </td>
            </tr>
        }
    </tbody>
</table>